﻿
//Author: 张亚涛
//createtime:2011-10-13 10:41:57
//Description: 

using System;
using System.Data;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Model;
using DAL;

namespace BLL
{

    /// <summary>
    /// 该类提供了一系列操作 "CouponsTrade" 表的方法;
    /// </summary>
    public partial class CouponsTradeService
    {
        #region .对本表的维护.
        #region select data
        /// <summary>
        /// 返回CouponsTrade表的所有数据  
        /// </summary>
        /// <returns></returns>        
        public static List<CouponsTrade> GetAllCouponsTrade()
        {
            return CouponsTradeBase.GetAllCouponsTrade();
        }
        /// <summary>
        /// 根据CouponsTrade表的TradeID字段返回数据  
        /// </summary>
        /// <param name="tradeID">TradeID</param>
        /// <returns></returns>        
        public static CouponsTrade GetCouponsTradeByTradeID(long tradeID)
        {
            return CouponsTradeBase.GetCouponsTradeByTradeID(tradeID);
        }
        #endregion
        #region delete data
        /// <summary>
        /// 根据CouponsTrade表的TradeID字段删除数据 
        /// </summary>
        /// <param name="tradeID">tradeID</param>
        /// <returns>返回受影响的行数</returns>
        public static int DeleteCouponsTradeByTradeID(long tradeID)
        {
            return CouponsTradeBase.DeleteCouponsTradeByTradeID(tradeID);
        }
        #endregion
        #region update data
        /// <summary>
        /// 根据CouponsTrade表的TradeID字段更新数据 
        /// </summary>
        /// <param name="tradeID">TradeID</param>
        /// <param name="CouponsTrade">couponsTrade</param>
        /// <returns>返回受影响的行数</returns>
        public static int UpdateCouponsTradeByTradeID(CouponsTrade couponsTrade)
        {
            return CouponsTradeBase.UpdateCouponsTradeByTradeID(couponsTrade);
        }
        #endregion
        #region insert data
        /// <summary>
        /// 向CouponsTrade表插入一条数据，插入成功则返回自增列数值，插入不成功则返回-1 
        /// </summary>
        /// <param name="couponsTrade">CouponsTrade</param>        
        /// <returns></returns>
        public static int AddCouponsTrade(CouponsTrade couponsTrade)
        {
            return CouponsTradeBase.AddCouponsTrade(couponsTrade);
        }
        #endregion
        #endregion

        #region .SQL语句汇总.
        /// <summary>
        /// 返回CouponsTrade表的所有数据（SQL语句） 
        /// </summary>
        /// <returns></returns>        
        public static string GetAllCouponsTrade_SQL()
        {
            return CouponsTradeBase.GetAllCouponsTrade_SQL();
        }
        #endregion
    }
}